﻿using System;
using System.Collections.Generic;

using System.Text;

namespace WeFeTeLib
{
    class CookieListener
    {
        /// <summary>
        /// Pass the results to the Framework object.
        /// </summary>
        /// <param name="o">The Framework object that is being tested</param>
        /// <param name="e">The CookieEventArgs that contains the Cookie object and the conditions that it matched.</param>
        public void SaveResult(object o, CookieEventArgs e)
        {
            Framework framework = (Framework)o;
            Cookie cookie = e.Cookie;
            framework.addDebugResult(cookie.Name, "Cookie", e.Conditions);
        }
    }
}
